﻿using Microsoft.AspNetCore.Mvc.Routing;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BusinessService.Plugin.Entity
{
    [TenantAttribute("1")]//对应ConfigId
    public class JsonBuildEntity
    {
        /// <summary>
        /// 主键N_Id
        /// </summary>
        [SugarColumn(ColumnDescription = "ID主键", IsPrimaryKey = true)]
        public virtual long ID { get; set; }
        /// <summary>
        /// Json对象名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 数据源集合
        /// </summary>
        public string DataSourceList { get; set; }
        /// <summary>
        /// 上传通道
        /// </summary>
        public string UploadTarget { get; set; }

        /// <summary>
        /// 上传通道类型
        /// </summary>
        public string UploadTargetType { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
    }
    [TenantAttribute("1")]//对应ConfigId
    public class JsonStruct
    {
        /// <summary>
        /// 主键N_Id
        /// </summary>
        [SugarColumn(ColumnDescription = "ID主键", IsPrimaryKey = true)]
        public virtual long ID { get; set; }
        /// <summary>
        /// 主表Id
        /// </summary>
        public long P_Id { get; set; }
        /// <summary>
        /// 节点名称
        /// </summary>
        public string NodeName { get; set; }
        /// <summary>
        /// 节点等级
        /// </summary>
        public string Type { get; set; }
        /// <summary>
        /// 节点数据源
        /// </summary>
        public string Value { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
    }
}
